import { Route } from 'react-router';
import stores from "./stores/index";
import Home from "./components/Home";
import Mainpage from "./components/MainPage";
import {WeaLocaleProvider} from "ecCom";

const getLocaleLabel = WeaLocaleProvider.getLocaleLabel.bind(this, 'conlock');
const Routes = (
    <Route path='contractlock' name="contractlock" breadcrumbName="契约锁" onEnter={getLocaleLabel} component={Home}>
        <Route path="integration" name="integration" breadcrumbName="契约锁配置"  component={Mainpage}/>
    </Route>
)

module.exports = {
    Route: Routes,
    store: stores
};
